TQABitmapBindColorTable
A drawing engine may define a method to bind a color lookup table to a bitmap.
typedef TQAError (*TQABitmapBindColorTable) ( TQABitmap *bitmap, TQAColorTable *colorTable);
bitmap
- A bitmap.
colorTable
- A color lookup table (as returned by a previous call to
QAColorTableNew
).DESCRIPTION
YourTQABitmapBindColorTable
function is called whenever an application callsQABitmapBindColorTable
. Your function should bind the color lookup table specified by thecolorTable
parameter to the bitmap specified by thebitmap
parameter. Note that the type of the specified color lookup table must match that of the pixel type of the bitmap to which it is bound. For example, a color lookup table of typekQAColorTable_CL8_RGB32
can be bound only to a bitmap whose pixel type iskQAPixel_CL8
.